package com.lms.service;


import com.lms.bean.Book;
import com.lms.bean.User;
import com.lms.util.QueryResult;
import com.lms.vo.BookVO;
import com.lms.vo.UserVO;

import java.util.List;

public interface UserService {
    Long getTotalCount();

    List<UserVO> findAll(int page, int pageSize);

    User findUserById(Long userId);

    User checkUser(String username, String password);

    void save(User user);

    void deleteById(Long userId);

    void deleteAll(String ids);

    QueryResult<UserVO> queryByKeyWordLikeNoType(int page, int pageSize, User param);

    QueryResult<UserVO> queryByKeyWordLikeWithType(int page, int pageSize,User param, long roleId);

    void changeUserInfo(User user);
}